package com.inspector.app.ui.chat;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;

import com.inspector.app.R;
import com.inspector.app.databinding.ActivityWebBinding;
import com.inspector.app.ui.base.BaseDJActivity;

public class WebActivity extends BaseDJActivity {


    private ActivityWebBinding viewDataBinding;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initStatusBar(false);
        viewDataBinding = DataBindingUtil.setContentView(this, R.layout.activity_web);
        viewDataBinding.setLifecycleOwner(this);
        Bundle extras = getIntent().getExtras();
        String url = extras.getString("url");
        initView(url);
    }

    private void initView(String url) {
        if (url == null) {
            finish();
        }

        displayFromAsset(url);
    }

    private void displayFromAsset(String assetFileName) {

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();

    }
}
